package com.kepennar.application.domain;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the invitations database table.
 * 
 */
@Entity
@Table(name="invitations")
public class Invitation implements Serializable {
	private static final long serialVersionUID = 1L;
	private int idInvitations;
	private Account account;
	private Event event;

    public Invitation() {
    }


	@Id
	@Column(name="id_invitations", unique=true, nullable=false)
	public int getIdInvitations() {
		return this.idInvitations;
	}

	public void setIdInvitations(int idInvitations) {
		this.idInvitations = idInvitations;
	}


	//bi-directional many-to-one association to Account
    @ManyToOne
	@JoinColumn(name="id_account", nullable=false)
	public Account getAccount() {
		return this.account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}
	

	//bi-directional many-to-one association to Event
    @ManyToOne
	@JoinColumn(name="id_events", nullable=false)
	public Event getEvent() {
		return this.event;
	}

	public void setEvent(Event event) {
		this.event = event;
	}
	
}